const express = require('express')
const app = express()
const userRouter = require('./routes/User')
const jobRouter = require('./routes/Job')
const bodyParser = require('body-parser')
const cors = require('cors')


app.set('x-powered-by', false)
app.use(express.urlencoded({
    extended: false
}))
app.use(express.json());
app.use(cors())



app.use('/user', userRouter)
app.use('/job', jobRouter)
app.listen('3000', () => {
    console.log('服务启动')
})